for i in `seq 1 3`;do
cp /etc/libvirt/qemu/template.xml /etc/libvirt/qemu/win1$i.xml
echo "cp win1$i.xml"
mac1=`openssl rand -base64 8 | md5sum |  cut -c1-2`
mac2=`openssl rand -base64 8 | md5sum |  cut -c1-2`
sed -i "2c <name>win1$i</name>" /etc/libvirt/qemu/win1$i.xml
sed -i "29c <source protocol='sheepdog' name='win1$i'>" /etc/libvirt/qemu/win1$i.xml
sed -i "36c <source protocol='sheepdog' name='data10$i'>" /etc/libvirt/qemu/win1$i.xml
sed -i "61c  <mac address='52:54:00:b1:$mac1:$mac2'/>" /etc/libvirt/qemu/win1$i.xml
sed -i "62c  <source bridge='br0'/>" /etc/libvirt/qemu/win1$i.xml
dog vdi clone -s 1 s_win2k19_v1 win1$i
dog vdi create data10$i 10G
virsh define /etc/libvirt/qemu/win1$i.xml
virsh start win1$i 
done
